import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import VueLazyLoad from 'vue-lazyload'
import http from './api/http'
import validate from './util/validate'
import VueCookie from 'vue-cookie'
import store from './store/index'
import {Message} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.config.productionTip = false

import VideoPlayer from 'vue-video-player'
require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
Vue.use(VideoPlayer)


Vue.prototype.http = http;
Vue.prototype.validate = validate;
Vue.prototype.message = Message;
Vue.use(VueLazyLoad, {
  loading: '/imgs/loading-svg/loading-bars.svg'
})
Vue.use(VueCookie)
new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
